<div class="turnpage">
  <div>
      共 {{total}} 条记录
    </div>
  <div>
  {% if objects.has_previous %}
      <a href="?{{ objects.previous_page_number.querystring }}" class="iconfont"><</a>
  {% else %}
      <a href="#" class="iconfont disabled"><</a>
  {% endif %}
  {% for page in objects.pages %}
        {% if page %}
            {% ifequal page objects.number %}
                <a class="on">{{ page }}</a>
            {% else %}
                <a href="?{{ page.querystring }}">{{ page }}</a>
            {% endifequal %}
        {% else %}
            <span style="float: left;line-height: 15px;font-size:10px;padding:0 5px;">
            ...
            </span>
        {% endif %}
    {% endfor %}
    {% if objects.has_next %}
        <a href="?{{ objects.next_page_number.querystring }}" class="iconfont">></a>
    {% else %}
        <a href="#" class="iconfont disabled">></a>
    {% endif %}
    </div>
</div>